package Test6.LNode;

public class Test {
    public static void main(String[] args) {
        LinkList list =new LinkList();
        System.out.println(list.length());
        System.out.println(list.get(0));
        System.out.println(list.search(1));
        System.out.println(list.remove(1));
        System.out.println("====================");
        list.add(1);
        list.add(2);
        list.add(3);
        System.out.println(list.length());
        System.out.println("====================");
        LinkList L=new LinkList();
        L.add(1);
        L.add(2);
        L.add(3);
        System.out.println(L.toString());
        Node p=L.search(2);
        p.setData(22);
        System.out.println(L.toString());
        L.insertAfter(p,23);
        System.out.println(L.toString());
        L.remove(22);
        System.out.println(L.toString());
        System.out.println(L.length());
    }
}
